import { HttpService } from '@/utils/http';
import { API } from '@/utils/configs';
import { TListData } from '@/types/data';
import { ReturnResult } from '@/types/http';

class ListHttpService extends HttpService {
  getListDatas(cityId: string, field: string) {
    return this.axiosGet<{ cityId: string, field: string }, ReturnResult<TListData>>({
      url: API.GET_LIST_DATAS,
      data: {
        cityId,
        field,
      },
    });
  }
}

export const listHttpService = new ListHttpService();
